package cn.sofwin.day0120.homework.custom;

import java.util.Scanner;

public class CustomerBizTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        CustomerBiz c = new CustomerBiz();
        c.name = new String[100];//必须new 再赋值
        String choose;

        do {
            System.out.print("请输入客户的姓名：");
            String name = sc.nextLine();
            c.addName(name);
            choose = sc.nextLine();
        }while("y".equals(choose));//choose必须为方法中的局部变量

        c.showName();


    }
}
